package com.platform.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.ApiShowGoodsMapper;
import com.platform.entity.ShowGoodsVo;


@Service
public class ApiShowGoodsService {

    @Autowired
    private ApiShowGoodsMapper showGoodsMapper;


    public ShowGoodsVo queryObject(Integer id) {
        return showGoodsMapper.queryObject(id);
    }


    public List<ShowGoodsVo> queryList(Map<String, Object> map) {
        return showGoodsMapper.queryList(map);
    }


    public int queryTotal(Map<String, Object> map) {
        return showGoodsMapper.queryTotal(map);
    }


    public int save(ShowGoodsVo showGoods) {
        return showGoodsMapper.save(showGoods);
    }


    public int update(ShowGoodsVo showGoods) {
        return showGoodsMapper.update(showGoods);
    }


    public int delete(Integer id) {
        return showGoodsMapper.delete(id);
    }


    public int deleteBatch(Integer[] ids) {
        return showGoodsMapper.deleteBatch(ids);
    }
}
